﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="freightTemplateList.aspx.cs" Inherits="WebApp.admin.basic.freightTemplateList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1"><title>
	运费模版
</title><link href="../css/skin.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../js/main.js"></script>
<script type="text/javascript" src="../js/jquery.min.js"></script>
<script type="text/javascript" src="../js/jquery.js"></script>
</head>


<body class="body">
    <table class="main" cellpadding="0" cellspacing="0">
        <tr>
            <td class="td_middle_middle">
                <div class="maincontent">
                    <input id="btnAddFreightTemplate" type="button" class="formButton" value="添加模版" onclick="location.href='freightTemplate.aspx?ot=ad';" />
                    <form id="form1" runat="server">
                        <table cellpadding="0" cellspacing="0">
                            <tr class="tr_title">
                                <td>
                                    <input name="chkall" value="1" type="checkbox" onclick="CheckAll(this,'Item')" title="全选/反选" />
                                </td>
                                <td>
                                    <span onclick="SetOrder('freightTemplateName');">模版名称</span></td>
                                <td>
                                    <span onclick="SetOrder('freightThat');">运费说明</span></td>
                                <td>
                                    <span onclick="SetOrder('createTime');">时间</span></td>
                                <td>
                                    操作</td>
                            </tr>
                            
                             <asp:Repeater ID="rptFreightTemplate" runat="server" OnItemDataBound="rptFreightTemplate_ItemDataBound" >
                                <ItemTemplate>
                                    <tbody>
                                        <tr>
                                            <td>
                                                <input id='cb<%# Eval("id") %>' name="Item" type="checkbox" onclick="ShowDelete();"
                                                    value='<%# Eval("id") %>' /></td>
                                            <td>
                                                <%# Eval("freightTemplateName")%>
                                            </td>
                                            <td>
                                                <%# Eval("freightThat")%>
                                            </td>
                                            <td>
                                                <%# Eval("createTime")%>
                                            </td>
                                            <td>

                                              <div style="float:left; display:block;" id="divEdit" runat="server">  <a href="FreightTemplate.aspx?ot=ed&id=<%# Eval("id") %>"  title="编辑">[编辑]</a></div>
                                              <div style="float:left; display:block;" id="divDeleted" runat="server">  <a title="删除" href="FreightTemplateList.aspx?action=del&amp;id=<%# Eval("id") %>" onclick="javascript:return confirm('你确定要删除吗？');">[删除]</a></div>
                                      
                                            </td>
                                        </tr>
                                    </tbody>
                                </ItemTemplate>
                                <FooterTemplate>
                                    <tr>
                                        <td colspan="10" style="text-align: center;">
                                            <label id="lblEmpty" style='display: <%# rptFreightTemplate.Items.Count==0?"block":"none"%>;
                                                color: Red;'>
                                                没有找到任何记录</label>
                                        </td>
                                    </tr>
                                </FooterTemplate>
                            </asp:Repeater>   
                        </table>
                          <asp:Button ID="btnDelete" runat="server" Text="删除" OnClientClick="return confirm('确定要删除吗？');"
                            OnClick="btnDelete_Click" EnableViewState="false" CssClass="formButton" />
                        <% Response.Write((new Gift.WebApp.PageListNo()).DisplayPage(total, pageSize, pageIndex)); %>

</form>
                    提示：指定地区的运费首件商品按商品运费模版最高运费计算，多加一件商品按照各商品的运费模版的附加运费计算。
                </div>
            </td>

        </tr>

    </table>
</body>
</html>
